<?php
get_header();

if( is_front_page() && !$paged && file_exists( implode( "/", explode( "/", $_SERVER['SCRIPT_FILENAME'], -1 ) )."/wp-content/themes/filingcabinet_blog/images/FileTabFrontPage.swf" ) ) { /* Print out a banner for the front page. */ ?>
<div style="height:200px; background-color:#999999;" id="flashFrontPage">&nbsp;</div>
<script type="text/javascript">
	// <![CDATA[
		var so = new SWFObject("<?php bloginfo('stylesheet_directory'); ?>/images/FileTabFrontPage.swf", "FileTabFrontPage", "960", "200", "9", "#999999");
		so.addParam("wmode", "transparent");
		so.addVariable("dir", "<?php bloginfo('stylesheet_directory'); ?>");
		so.addVariable("xml", "<?php bloginfo('stylesheet_directory'); ?>/images/frontpageheader.xml");
		so.write("flashFrontPage");
	// ]]>
</script>

<div id="content"><!-- begin main page content -->

<?php } ?>

<div id="posts">

<?php
if (have_posts()) :
	while (have_posts() ) :
      the_post();
	  print_post();
   endwhile;
endif;
?>

	<div class="navigation">
        <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
        <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    </div>

</div>

<?php get_sidebar(); ?>

</div><!-- end main page content -->

<?php
get_footer();
?>